package com.ps.pojo.setting;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.Set;

import com.google.gson.annotations.Expose;

/**
 * FunctionModule entity. @author MyEclipse Persistence Tools
 */

public class FunctionModule implements java.io.Serializable {

	// Fields

	@Expose (serialize = true)
	private Integer functionModuleId;
	@Expose (serialize = true)
	private String name;
	@Expose (serialize = true)
	private String describe;
	@Expose (serialize = false, deserialize = false)
	private Set permissions = new HashSet(0);
	@Expose (serialize = true)
	private ArrayList<Permission> permissionList = new ArrayList<Permission>(0);
	// Constructors

	/** default constructor */
	public FunctionModule() {
	}

	/** minimal constructor */
	public FunctionModule(String name) {
		this.name = name;
	}

	/** full constructor */
	public FunctionModule(String name, String describe, Set permissions) {
		this.name = name;
		this.describe = describe;
		this.permissions = permissions;
	}

	// Property accessors

	public Integer getFunctionModuleId() {
		return this.functionModuleId;
	}

	public void setFunctionModuleId(Integer functionModuleId) {
		this.functionModuleId = functionModuleId;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescribe() {
		return this.describe;
	}

	public void setDescribe(String describe) {
		this.describe = describe;
	}

	public Set getPermissions() {
		return this.permissions;
	}

	public void setPermissions(Set permissions) {
		this.permissions = permissions;
	}

	public ArrayList<Permission> getPermissionList() {
		return permissionList;
	}

    
	
}